package com.itshizhan.demo2.volatiledemo;

public class Test1 {
    public static void main(String[] args) {

    }
}

class SharedObject {
    public volatile int counter = 0;
}